<?php

require_once (APPLICATION_SCRIPTS . '/ckeditor/ckeditor.php');
//require_once (APPLICATION_SCRIPTS . '/ckfinder/ckfinder.php');

class QSource_System_View_Helper_CmsEditor extends Zend_View_Helper_Abstract {

    public function cmsEditor($name, $value, $config = array(), $events = array()) {

        $CKEditor = new CKEditor();
        $CKEditor->basePath = SCRIPTS_URL . '/ckeditor/';
    //    CKFinder::SetupCKEditor($CKEditor, SCRIPTS_URL . '/ckfinder/');
        $CKEditor->config['width'] = '99%';
        $CKEditor->config['height'] = '500px';        
        $CKEditor->editor($name, $value, $config, $events);
    }
}